#define _CRT_SECURE_NO_WARNING
#include <stdio.h>

long long getNum(long long x, long long y)
{
    while (x % y != 0)
    {
        long long temp = x % y;
        x = y;
        y = temp;
    }
    return y;
}

int main()
{
    long long a = 0;
    long long b = 0;
    scanf("%lld %lld", &a, &b);
    long long ret = getNum(a, b);
    printf("%lld\n", (a * b) / ret);
    return 0;
}
